<?php
/* 
 *规格管理
 */
class OptionAction extends CommonAction {
    public function _filter(&$map) {
        $key = trim($_REQUEST['keywords']);
        if(!empty($key)) {
            $map['note'] = array('like',"%".$key."%");//备注信息
            $map['title'] = array('like',"%".$key."%");//锚文本
            $map['webname'] = array('like',"%".$key."%");//网站名称
            $map['url'] = array('like',"%".$key."%");//url
            $map['_logic'] = "or";
        }
    }

    public function _before_edit(){
       $this->assign('values',M('Option_value')->where('option_id ='.$_REQUEST['id'] )->findAll() ); 
    
    }
}
?>
